#if !defined(AFX_CHATROOMDLG_H__B8765C8B_49DD_4911_8F56_2CBD4AF1FAB2__INCLUDED_)
#define AFX_CHATROOMDLG_H__B8765C8B_49DD_4911_8F56_2CBD4AF1FAB2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChatRoomdlg.h : header file
#include "Resource.h"
#include "ServerThread.h"
#include "ClientThread.h"
//

/////////////////////////////////////////////////////////////////////////////
// CChatRoomdlg dialog

class CChatRoomdlg : public CDialog
{
// Construction
public:
	CChatRoomdlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CChatRoomdlg)
	enum { IDD = IDD_DIALOG_CHATROOM };
	CEdit	m_ctlContent;
	CListCtrl	m_ctlLinkName;
	CComboBox	m_ctlWho;
	CString	m_strContent;
	CString	m_strInfo;
	CString	m_strIPServer;
	int		m_iPort;
	int		m_iSelType;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChatRoomdlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CChatRoomdlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnListen();
	afx_msg void OnSend();
	afx_msg void OnCloseChatDlg();
	afx_msg void OnStop();
	afx_msg void OnSelType();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CServerThread * m_pserverthread;
	CClientThread * m_pclientthread;
	int i;
	UINT m_iflagIndex[20];
	void refresh();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHATROOMDLG_H__B8765C8B_49DD_4911_8F56_2CBD4AF1FAB2__INCLUDED_)
